Move the hostname verification to after the SSL handshake has completed.

Follow on work for https://github.com/AsyncHttpClient/async-http-client/issues/197