Fix NPE in OpenSslEngine