Fix running of schedules that were due while daemon was offline