Fix #773 New sessions' operations hanging on iOS 8
Catch the NULL cases, fix memory leak.
Merge pull request #149 from miximka/master

Fix #773: use kCFStreamPropertySSLPeerTrust instead of kCFStreamPropertySSLPeerCertificates.