XWIKI-10175: Installing an extension programatically and preserving xar author causes author to be set to guest for overwritten documents

(cherry picked from commit 89599eccc3938bc8b897ec944883430396e30dea)