fix JBDS crash when establishing TLS connection