Add the case when 'current-event' is not defined.