Fixes issue comparing to null, when it's actually undefined.