On the light-ray algebra in conformal field theories