[BISERVER-11312] - Added logic to reselect the previous selected object ...

...after the tree relayout

@pamval please review