Extending service life of rails in the case of a rail head defect