The problems with this policy have unfortunately been due to vanilla functions I do not have direct access to. In this particular situation, were the temples actually "lit up" / enabled in the city build panels? The same function that determines that is used for the policy.