Use '===' to compare with 'null'.

This change focuses on clarity. When using `==` when comparing `null`, `undefined` will evaluate to true. By switching the `==` to `===` we make it more clear to other programmers that undefined would also trigger this area to occur.

This also includes a few minor fixes where there were tabs mixed with spaces in the file. Those were removed to improve compatibility.