If a schedule is assigned to a task and we try to remove it, it should throw and visible error, but instead we get 500.