Add guard for a divide by 0
Add guard for a divide by 0

To prevent a divide by 0 situation when calculating the mean. Add a guard for the denominator. This situation arises if there is nothing accumulated yet when this loop event is called.

kgriesh/appmetrics,mattcolegate/appmetrics,RuntimeTools/appmetrics,hhellyeribm/appmetrics,sjanuary/appmetrics,stalleyj/appmetrics,seabaylea/appmetrics,sjanuary/appmetrics,hhellyeribm/appmetrics,RuntimeTools/appmetrics,hhellyer/appmetrics,RuntimeTools/appmetrics,mattcolegate/appmetrics,stalleyj/appmetrics,seabaylea/appmetrics,sjanuary/appmetrics,seabaylea/appmetrics,hhellyeribm/appmetrics,kgriesh/appmetrics,kgriesh/appmetrics,stalleyj/appmetrics,mattcolegate/appmetrics,hhellyeribm/appmetrics,hhellyer/appmetrics,sjanuary/appmetrics,seabaylea/appmetrics,RuntimeTools/appmetrics,RuntimeTools/appmetrics,seabaylea/appmetrics,kgriesh/appmetrics,mattcolegate/appmetrics,hhellyeribm/appmetrics,hhellyer/appmetrics,mattcolegate/appmetrics,hhellyer/appmetrics,stalleyj/appmetrics,stalleyj/appmetrics,hhellyer/appmetrics