Hide empty categories

Tweak the creation of the category tree to suppress creating items for categories which contain no extensions.