Dave Bodner had a circuit that would allow the engine to run when it lost electrical contact with the rails. But such a circuit would make switching operations impossible.
In the smaller scales, we would put conductive foil tape in the bottom of the flange-ways, so that the locomotive wheel flanges could pick up power while it was on the plastic frogs. This wasn’t a perfect solution, because some flanges didn’t reach deep enough to contact the foil. The foil also had to make a good electrical contact with the rail, so it was powered, and the foil was delicate. But in large scale, the basic idea might be workable since a thicker “foil” could be used.