Fix sanity check if no key is stored yet.