Warns if StudyEventDef = null. Corrected bug that put integers as E.