A man who pushed a random stranger off a train platform during peak hours has had his hopes to walk free from custody dashed in court.