Update bootstrapping code to match changes in WikibaseQueryEngine

Change-Id: I19446a08c8919ec3fa2f5b0523ffe07f2c880eb7
Merge "Update bootstrapping code to match changes in WikibaseQueryEngine"