Bugfix because typeof null === 'object'

If JavaScript was more functional than object-oriented,
then typeof null would be 'function' :P