CRM-13692, fixed sql break due to activity restructure for activity batch update via profile