If the lamp was coming on because your car was overheating, you shouldn't
have any problems with disconnecting the battery for a few minutes to
clear the code.
If you don't think you lost enough coolant to cause the car to overheat,
and I don't think you should overheat just from not having the reservoir
cap off, you should have the codes checked.