fixes issues in getNestedCategories() where id of root_category is not 1
Merge pull request #2004 from ptigas/1.6

fixes issues in getNestedCategories() where id of root_category is not 1