XWIKI-9480: "Upgrade all wikis" option does not work.

* Fix the migrator.
XWIKI-9480: "Upgrade all wikis" option does not work.

* Refactor.
Merge pull request #49 from gdelhumeau/XWIKI-9480

XWIKI-9480: "Upgrade all wikis" option does not work.