Check array bounds when removing all views prior to CollectionView array change

Resolves #2881