CRM-15279 : fix query for survey while finding activities

CRM-15279 : fix query for survey while finding activities