Had a similar problem on the 81 xs400 I am currently restoring. No power to headlight, no power to the headlight relay or handlebar switch. Pulled cover off the relay and noticed a diode inside the relay disintegrated. Replaced with a known good one and still no headlight. Studying the wiring...