collectionmanager: fixed regression that prevented deleting collections