Upper limit for thermal direct photon production in heavy-ion collisions at 60 and 200A·GeV