src: only access stack of non-null errors

Avoid segmentation fault when `null` is thrown
crypto: add `OPENSSL_no_config` in `InitCryptoOnce`.