Fixup of 0053b0912
Found a better way to update tree view without patching global document loading state, which may have unwanted side effects.
This approach has been already used in this method.
CCBUG:386698