Adds checks for whether eventseries, eventinstance and $date exist before creating row. Would close #3574432