Fixed bug in getTaxonomyTree that was duplicating children in subcategories due to list initialisation being the the wrong place