Invalid subdomain throws 404 instead of 500.