fixed crash when no calendars available on device