Critical: Patch clean_schedules() to test if a schedule has an end date
clean_schedules() function should only attempt to remove schedules that have a valid end date. On some rare occasions, schedules can be created without an end date, so it should not attempt to remove those.
The function attempts to remove all schedules without first checking if the schedule even has a
Steps to Reproduce the Behavior
Create a schedule without a end date and watch the app break when clean_schedules is hit.
This should be branched off of and merged into master!!