Ensure that sampled mini-batch is nonempty