make sure error isn't null
Merge pull request #118 from mozilla/error-message-null-crasher

make sure error isn't null