CSPACE-6029: Fix incrementing of numbers of CollectionObject records to which relations are added.