XWIKI-10037: Document version is set even when versionPreserved is false in Instance output module

(cherry picked from commit f604704db7ad1be075c0d4b4a2ae1a463971d9bc)
[misc] Minor improvement

(cherry picked from commit 8d059df0d8dc44a6d08cafe8f599db7fe7fc204d)