Fix type test for null