fix sometimes crasher in vcalendar_get_current_item()