XWIKI-9994: DW is wrongly started after the creation of a wiki using a template

(cherry picked from commit be8acac29dfaf5fd473f5ad0fa4e6e06394e7e95)