Playing devils advocate here, but if the offence at the throw in was a clear red card offence, ie a punch or shove to the face, would the ref have still waved play on, then red card him at the next stoppage, by which time the player could have had a hand in a goal for his own team. No, he would have stopped the game and issued the red, so why the difference in card colour. If Martinelli had known he was on a yellow, he wouldnt have committed the second foul.