XWIKI-10029: Failing to create user when there is no wiki event

(cherry picked from commit 7f135e58c59b23b025008812ce49db34db7f04d3)