Accounting for Thermal Resorption of Bubbles in Magma in Experiments and Volcanic Eruptions