Bug for multiple query matches (ensure=> absent)

When query result for the package gives multiple matches, only the first one is returned.
Solved by looking at all matches.