[dicecoeffweight] Fix weight upper_bound computation