Fixed FormatSummaryItems() to not throw NullReferenceException