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

* Deleting the old workspace object at the very end of the migration, in order to be able to resume the migration when it is stopped.