XWIKI-9191: Error in the console when creating a subwiki or a workspace