Fix issue where `(new Obj).notDefined` throws