Fix js error when testing undefined and null with !== operator.