Fixed a bug that was causing the resolver to match against invalid candidates. This bug was introduced during the resolver refactoring for require-bundle.