Add check for requested metric type before domain name check. Only the referrer metrics use the domain name; all other metrics should be unaffected. This partly closes #503