XWIKI-10071: DW does not trigger immediately after wiki creation sometimes

(cherry picked from commit 00426f947a0e2b3d27e64ad7c61a79b60df0fbd7)