Fixed a bug when setting the ItemSource to a collection that is pre-populated