NXP-15206: don't crash on import folder retrieval when current document is null
NXP-15125: handle node expanded info, toggle on client side + cleanup/adapt to new API
NXP-15125: also toggle document tree on client side