Taste of Blood deals 1 damage to target player or planeswalker and you gain 1 life.
If the player is an illegal target when Taste of Blood tries to resolve, Taste of Blood won’t resolve and none of its effects will happen. You won’t gain life.