AIOS-822 Place a default value in the avgWeight variable if no average weight is given to prevent divide by zero errors.