If the helmet comes off as a result of a penalty the player can stay in the game.He knocked his helmet off. They'll call that if you hit the QB high after the throw.
Edit: Well, I guess he didn't knock his helmet off, or else they wouldn't have had to use a different QB the next play. I don't know, then.