Account for the case where we don't have a tree view in selectedIndex setter which may break future autocompletes.