Don't use the errorHandler middleware in production mode

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