Fixed #281: Don't create empty batches when event list is empty
Test for #281
Merge pull request #347 from robertvazan/master

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