Fix TLS peer wildcard matching with matching last component

When the last component of a wildcard match actually matches we
end up with pWildcard == NULL at the end of while(*pC). Check
for pWildcard != NULL before dereferencing it.