PDIO-324 Fix event API accept null for optional field