Avoid division by zero in calculation of loss rate

If there are no packets sent, print loss rate '0' instead of 'NaN'.
Merge pull request #297 from dpino/loss-rate-avoid-division-by-zero

Avoid division by zero in calculation of loss rate