Avoid division by zero when calculating hit ratios in cases where there are zero memory accesses on a module