Fix #1374

Makes wires check whether they're actually powered before trying to shock people
Fixes issue #1374