Fix symbol value computation when part of the expression is weak.