Remove redundant comparison

You don't need both `obj !== undefined` and `obj != null` comparisons, since [undefined == null](http://es5.github.io/#x11.9.3) anyway.