fix bug 931156 - save document parent during move

Do Not Merge (Yet): This fixes the bug, but should we add a test that reproduces the original behavior first?