fixes ZEN-15562: Updates tree counters, preserves selected node once tre...

...e is refreshed by the update logic.