Waits until tree item has at least one child when searching for tree item via specified path