[FIXED JENKINS-13669] NPE when possiblyCachedRepo == null.