Load only repo for unknown builds

This will fix the build for WikibaseQuery being broken due to incompatibily
between repo and client, which is silly, since it does not depend on client.

Change-Id: If0854474785661e148a7f90e5b61fb64a8b02b6b