added conditional for if there is no event to add an error message to
added conditional for if there is no event to add an error message to

ctti-clinicaltrials/aact,ctti-clinicaltrials/aact,ctti-clinicaltrials/aact