Update Wikibase, fix for xml api exceptions

also updates populateSitesTable script so it
can be run without Wikibase actually enabled.

(e.g. use for wikisource)

Bug: 59876
Change-Id: I73d26dca84bfd8fb8d7bbe034ea70468eb3337df