When indexing the tree, ensure the direct_children have the correct has_children value by checking the grand children 'publish' value