Avoid a NameError when OpenSSL is unavailable.

Fixes #2893.
Merge pull request #2898 from TimMoore/issue-2893-fix-gem-security-policies-name-error

Avoid a NameError when OpenSSL is unavailable.