This bug is already known and acknowledged by the staff team. If you go to the PvP Rules you will find a list of bugged moves.
Currently listed under "Bugged and not bannable". Baton pass is really risky to use for this reason. You can continue to use it but risk having what happened to you happen again costing you a match perhaps.