Don't crash if errorID is null

This can happen sometimes (but it's rare).
Merge pull request #12 from berg/master

Don't crash if errorID is null