Make the `new_site` rake task fail if the hostname is invalid

- Invalid hostnames were breaking CDN configuration for the sites,
  according to the story in Transition's Pivotal.