As the circuit is used in a DCC environment, there is AC on the track. So it will work, or not, regardless of polarity.That's what the anti-parallel diodes D1 and D2 are for.
I'll quote from the article I got this from, some of the explanation of why this should work:
When a "current drawer"...