It does not sound like a glitch. Sounds like your religion was wiped out - it happens. You need to pump out your apostles and inquisitors fast in this game to protect your cities from this happening....