Conditional Quasi-Exact Solvability of the Quantum Planar Pendulum and its Anti-Isospectral Hyperbolic Counterpart