This is an old bug afaik and it can be reproduced in a lot of ways. The only solution I could think of is making it so you can't take any action while you're doing the emote, nor being able to do the emote while you're in an action.
EDIT: it was fixed before. I guess it's back again.