There’s a loophole in the laws that allows a player,when he is not in a position to play, to turn into an assistant coach temporarily -thereby ensuring that he is able to sit on the bench instead of in the stands.
Thus Messi sat on the bench and not in the stands.
And thus Argentina beat Bolivia 3-0 in their world cup qualifier with the moral support of their temporary assistant coach.