Fix headlights not turning off for vehicules without electricity.

The function that toggled the lights on and off checked if the lights
were off or if the vehicule has some batteries left before toggling the
lights. This allowed vehicules without batteries to turn on their lights
but are not able to turn it off.

Fixed by checking if the lights were off instead.