Fix null pointer when site doesnt have apiSiteParamater