(bugfix) continue handleargs with localargs

pywikibot.handleArgs is guaranteed to return a list (as opposed
to a generator) after parsing all global arguments (such as
-lang and -family). generatorFactory must be instanced after that because it needs the site object.

Change-Id: I365dd03abdd288e5f0e55694f5299b6a7e6511a2
Merge "(bugfix) continue handleargs with localargs"