Allow both upper- and lowercase wikibase IDs

Change-Id: Id7c29981e8dde7c041a16b43bcc2658faf7b0c94