Check for existence of calendar before checking is_main_calendar