Handle empty referer and user agent fields