A woman who had to rush home because her child fell ill was fined over a mistake she made during the journey, despite holding a valid travel ticket.