Fixed lastSelected update when making selections in the tree in all
cases except initial load of containers_icon