Don't think the principle applies there. Religion can be used as a basis for community involvement, morality (relative, so it applies), etc in character positioning of a presidential candidate.
Religion as an official entity cannot collide with government issues, but there's nothing against it being used as a facet of someone's character.
And this coming from someone who despises religion.
People are entitled to consider whatever dumb criteria they want when voting for a president.