PICARD-630: linear_combination_of_weights() raises exception

It happens when the function is called with empty parts list.
Returns 0.0 instead of raising ZeroDivisionError exception