Piping with Set-AzureWebsite produces multiple hostnames, some of which are incorrect

Fix WindowsAzure#2270