phpfpm_average: to eliminante division by zero

To fix issues by dividing with zero.