[jan] Fix fatal error when importing a PGP key (Bug #12318).