The influence of temperature fluctuations on hot-wire measurements in wall-bounded turbulence