Cope with dpkg-query returning a non-zero exit status

It returns 1 if the package isn't found.