It's too late if I see the toddler. I
1. Beat someone
2. It walks me to the PC to heal my Pokemon
3. It asks me do I want to continue or rest
4. My character walks to the next car of the train. There, you see the next person you're about to battle. It's too late to leave. If that trainer happens to be the kid, then the game will freeze. There's no way of getting past that