Fix SC.TemplateCollectionView content observer.

The old way could lead to duplicated views if a run loop was
manually invoked at an unexpected time.