ENYO-3082: fix switchDoc triggered from Document Toolbar