Fixed leakdb. KeyError when no hash found