set referer to blank string if undefined