Defrag: Fixed accumulation of bases which comes out the limits.

When we go through unsorted bases and find a base which can be added to accumulation because of limits
we need to consider it's records and size in total counters rather then resetting counters to 0