The door switches are open circuit with the door closed and apply an earth when the door is opened. If all the switches are OK I'd say it's more likely you have an earth contact where there shouldn't be one, bringing the warning light up, rather than a bad earth,