Fix fatal error when calculating alarms on a recurrence that has completed.