EXPERIMENTAL: check for OpenSSL errors in CheckJNI.

Change-Id: I7c8ce54d9a9f584812a07e78d5c9b2e2bda084f3