Fix the MgCl_2 weight calculation

Fixes #38075