Forgot to remove emitting event for 404s. It does not make sense now, since we are rendering in the error middleware itself.