Fixes a bug when bookmarking documents where the root node is different from what was originally opened.
Fixes a bug when bookmarking documents where the root node is different from what was originally opened.

btrask/Sequential,johan/Sequential,btrask/Sequential,btrask/Sequential,johan/Sequential,johan/Sequential,btrask/Sequential