Fixes undefined not caught by "=== null"