That happened to me yesterday. I think the trick is to not buy a ticket for the commuter rail beforehand, and just pay on the train. If they miss you, that's their fault and not yours, since you fully intended to pay. They definitely profile people though. They made the dodgy looking fool that I was sitting next to me pay up, but never asked me ha.