fix division-by-zero issue in calculating masses when source has no observations