edge case fixed

If no samples have any weight when updating a distribution, then don't
do anything.