Fixes #302 - PeriodicBatchingSink batching improvement