Fix nullptr test
It actually works!