(query-dns): Protect against errors.