Bug 914904 - Guard against errors thrown in reportError function

https://bugzilla.mozilla.org/show_bug.cgi?id=914904