Fix for validator error for creating topics for a category without subcategories

@cdman 
Tested both cases (i) with subcategories; & (ii) w.o. subcategories.