You lose the buff now when the spell is cast.
But keep in mind you lose it too if you allow the cast to be finished and the spell fails, by facing the wrong direction, having the mob run out of range or hitting an "invulnerable", for exemple.
In other words, you need to pay a lot more attention to where you are compared to the mob you target.