Bugfix: EventGenerator#generate failed when the next date was nil (i.e. no dates to generate)