Made the item count on the index page work for batches with no associated jobs