Checks GetState return value in GetValidEvents.