No longer enters an endless loop if you try to generate events for a day with no logs.