checking for precense of original_referer before trying to use indexOf on it