Hmmmm...AFAIK a segment is considered "flown" unless there's an event that cancels it, such as a message from the gate system saying that the passenger didn't board. Since rails don't have gate systems, I assume that the segments stay as flown, and you automatically get the miles, whether you take the train or not.