Added check whether the event has been published