If you have the kickstand down and put it in gear, does the bike die? If so it's the light bulb or wiring. If it's in neutral and you put the kickstand down and the bike dies, then it's the sensor.
The actual neutral switch is behind the stator cover towards the bottom of the bike (RIGHT in front of the shift linkage)