setup: Fix treeview selection resetting after failed add