Fixed showing active class in element's tree

### What does it do ?
Identify currently updating element as a selected.

### Why is it needed ?
Currently updated element will obtain `x-tree-selected` class, so user will have visual feedback on what is currently edited

### Related issues
Resolves #11541