Fixed #281: Don't create empty batches when event list is empty