fix issue where trees that do not belong to a category are not displayed in tree#index view