Use a general reference check, not only cTrue

There shouldn't be any other immediates set than cTrue, but using a
reference check is a better match for the needed behavior and would
prevent a crash if anyone manages to set another immediate.