bug 950231: Use autocommit more for revert_document, so kumascript gets current content