Fix semantic typo in state.CorruptionPossible check

state.Invalid() is always false, check should be IsInvalid()

Broken since 942b33a
Merge pull request #4533

43005cf Fix semantic typo in state.CorruptionPossible check (kazcw)