PICARD-630: linear_combination_of_weights() raises ZeroDivisionError

It happens in rare cases that the function is called with empty list, so just handle it gracefully, returning 0.0 instead of raising ZeroDivisionError.

http://tickets.musicbrainz.org/browse/PICARD-630