Totally spitballing here, but...is it possible the switch body of the original grounds to the door frame somehow, and the new one does not? I doubt it, as most switches have plastic bodies, but like I said, spitballing.
One thing you might try is putting a volt/ohm meter on the exposed leads...