Update selected index after removing UIs that have gone away, so if the selected UI goes away we select the first UI.
Update selected index after removing UIs that have gone away, so if the selected UI goes away we select the first UI.

cablelabs/librui-discoverer,cablelabs/rui-http-server,cablelabs/rui-http-server