Do not use === or !== in comparisons with null

Since null only equals to null and undefined it is not necessary to use
=== operator. It can complicate code if the difference between null and
undefined is irrelevant.

Instead of comparing against "undefined" (string) using typeof the
comparison is done with === against undefined (keyword) instead.