Moved the production error handler into an "else" enclosure because it doesn't need to be bound if in development mode.