Add DocumentBatch#empty? check
Update DocumentBatcher#flush to no-op on an empty batch