The links between logic + rail blocks stays when the original linked rail is set to another rail type and that one gets removed.
Similar issue to what we used to have with weapon systems and the old elevators. Meta data doesn't update/remove itself when it changes block types.