Changed isPublished() logic for nodes to look at whole tree.