Last year I had the same problem with one of Mr Honda's finest.............
Blackbirds have a similar problem in the loom between the genny and reg/rec, this pic shows a problem in Exactly the same connector block as the one we're having 'potential' problems with on the Aprilias.
In my case I didn't spot it soon enough and because of the heat damage to the genn and reg/rec wiring I had to replace both at a considerable cost
As soon as my Tuono comes back from its 1st service I am doing the 'fix' as per 'Joe250's' excellent post.
PS. the picture is NOT of my bike, mine was MUCH WORSE than this one