Fix compilation in release builds
Practically we can never get here, but the compiler might not always be able to prove that.