Avoid SEGV when giving X509_sign a NULL private key.