Fix for DoubleRenderError in SchedulesController#index when redirecting to access denied after login