BS-6749: add more logs and try unselecting tree before reselecting and
expanding in order to avoid possible cache issue