[CASC-208] Prevent unnecessary log errors 

getSocketFactory() should only be called on a sslContext that has been initialized.