Fix divide-by-zero when no inactive batches.