fixes bug for series_end_time, in case repeat_ends is true but  repeat_ends_on is nil