Fix hasTrustManager