Fixed a null reference error when getting referrers