Reset lastSampleTime when simulation is resumed

[#46121501]