BS-2275: get the updated selection of tree item in order to avoid
"widget is disposed" exceptions