XWIKI-9738: Finalize migration from workspaces to the new wiki API.

Some fixes.