Make WikidataItemGenerator work if page is already on the repo

Bug: https://sourceforge.net/p/pywikipediabot/bugs/1653/
Change-Id: Ia9916450a077f6604a3bc3649da4715a280e5b52
Merge "Make WikidataItemGenerator work if page is already on the repo"