1490e8a707
Prevent a NullPointerException when no SecureContext can be found. Instead, throw a real exception, explaining what's wrong.