don't pass invalid iterators to pkgProblemResolver
Merge pull request #4 from jeremyroman/master

Don't pass invalid iterators to pkgProblemResolver.