XWIKI-9213: Wrong author get saved in the DB
* reverted  XWIKI-8240 and fixed it the right way
(cherry picked from commit 7ed7424fc6afe163709444ee049f356e123e14ef)