[FIXED JENKINS-17409] unhandled exception in looselyMatches
[FIXED JENKINS-17409] remove extraneous dependency, slightly better flow
[JENKINS-17409] looselyMatches does not need to check for repository==null
Merge pull request #35 from jerrymaloney/master

[FIXED JENKINS-17409] looselyMatches throws exception if second parameter (repository) is null