fix OnLegendItemsSourceCollectionChanged NullReferenceException