Could be a loose neutral somewhere and if the light bulb is still in essentially hot and neutral are connected through the light. what I would do is disconnect all wires in both boxes and light fixture(mark how they were hooked up) and then check for continuity on everything, if no continuity...