fixed NPE for CalendarApi.getEventApi(IEvent)