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

(cherry picked from commit a256c4655648b00488326461994b6309b69ee138)