Use !== to compare undefined and null

!= returns false rather than true.

Not sure where the best place to put a failing test for this is.