[2.2] Core still has issues dealing with pad_counts + parent when getting categories.

Workaround by not hiding empty cats, then filter the returned list
using wp_list_filter. Fixes #6459