fixing App::error so custom error page renders in production environment