Fix treeview in taxonomy index page, refs #5434

Don't show treeview if the taxonomy doesn't have terms
Change directly related terms in ES, refs #5434

Store only the id instead of the whole term