[mms] Fix fatal error when importing a S/MIME key (Bug #12290).