P0126 - check engine code
It is quite possible the code was set as an intermittent problem. The thermostat may have been stuck at one point, freed up and began working again, and then allowed the light to go off. Most computer controlled engine systems...