Fixed a TypeError bug with site.referredByOrigin()