Add null check
Add null check

I'm encountering an error in `babel.dev.js/exit`. It's in quite a large project, and I don't have time to figure out the reason. (It fails checking a dependency called `js-csp`). Hoping you'll consider adding this extra check.
gaearon/react-hot-loader,gaearon/react-hot-loader