[Schedule] Fix bug affecting back to back scheduling.

If GetWeeklySecondDifference() was called during the second a
schedule is supposed to start, it would return a difference of
one full week instead of 0 seconds.
(cherry picked from commit 76c19a40bcd1ca8c87771646655a686f6fc16c2c)