check if _key_name_to_id returns and empty key and raise KeyPairDoesNotExistError if it does