Modify the condition to validate $creds

`[net.CredentialCache]::DefaultCredentials` may return a default `System.Net.NetworkCredential` instance.
So `$creds` need to be check if it is created with a default constructor.