Correct RDB 3.2 fix for activities where the end time can be before the start time when activities end at 0:00.