It even happens in games like WoW with Lay on Hands - even though that stuff isn't animation based and has a much more rapid state check.

Like others have said, best bet is to make sure you use it early - esp with animation delay, and definitely macro it to <t> and/or <mo> only. Turn off self targetting too.