Reference implementation of AndersenThermostat did not handle massless particles correctly