Fix warning in category view (empty subcats, #787 related)