I've done this way too many times.
What I do now when it happens is grab my sanitized funnel, stick the bottom end of it into the beer, and pour the priming sugar/water into that. There are no bubbles and it's a smooth pour. Then gently stir, and it's all good.