apt_key: Fix traceback when key_id format is invalid

Signed-off-by: Philippe Pepiot <phil@philpep.org>
Merge pull request #6468 from philpep/fix_apt_key

apt_key: Fix traceback when key_id format is invalid