Experimental implementation of a nonthermalizing quantum thermometer