The little boy was struck in the head while travelling on a train in Cairns.