Fix tep_count_products_in_category to check if the current category has subcategories without check subcategories