Energy2D: Fix a bug connected with thermometers

[#52401803]