calendarProvider: fix null pointer reference