Enable populateSitesTable script to run without wikibase enabled

evil necessity to populate sites table for wikinews

Change-Id: I16f1cdba9bc31489253689b3b1c52dfa0b5e19a3