Make iterator support empty batches.  This fixes #13