Prevent crash in X509_NAME_cmp() etc. when cert has no issuer or no serialNumber