Do not query empty hashes.