Fix update_tree_view() to actually fall back to slow locate-and-add when needed.