Corrected check for inactive schedules when using exceptions