Bug 985125 - remove unnecessary indirection from DOM error handler, r=dhylands