Fix semantic typo in state.CorruptionPossible check

state.Invalid() is always false and alters state, check should be IsInvalid()

Broken since 942b33a