fix division by zero when no allocations
Merge pull request #132 from nnutter/RT/102334

fix division by zero when no allocations