Sometimes after estableshing of encryption gloox says that client
doesn't provide encryption and fail the connection. Patch adds one
more check for it, so now it work perfect.
Also there is one more fix of segfault at disconnect: TLS Client
notifies ConnectionBase about disconnection and it tries to delete tls
client inside this method, so sometimes (really random) it crashes.