Handle the case where the batch has no pids