Corrected error when no referrer is set.