DS-1811 Removing a collection fails if non-Solr DAO has been used before for item count