Fix divide by zero in calculation of w when dpois returns a 0 density