Fixing error when siteSelector is empty