Clean up checks for null and undefined

Addresses https://github.com/airbnb/rendr/issues/104, if this isn't in the right direction go ahead and close :)