Empty categories are now ignored when calculating quantiles

When calculating the pages quantiles for a graph, categories with zero
pages are ignored. The same applies for the subcategory quantiles.