Better NULL checks in debug

In case we exit early, like before ssl_setup() was called
1 file changed