fixed issue where mono treats empty X509 certificates differently than .NET.