Well, the ball was put out of play because a player was injured, so it is universally accepted that possession is given back from the throw in.
When this happens, it is universally accepted that you pass it to the goalkeeper/defending player and not try to score.
However, after the referee had...