Only warn about invalid states when debugging