Actually come to think of it are u SURE its a diode and not just a connector tube? As the terminal on the blue wire changes from being a Negative/Earth when not running to the charging voltage when running (hence why the bulb goes out, being fed by a switched +12v)