A similar thing happened in my latest game. After defeating Germany I (UK) made Germany democratic and Russia made Poland a puppet. Then, Russia proceeded to hand western Poland to democratic Germany...
Possible fixes:
-Make sure than the event cannot fire (or the AI will refuse if):
A) Poland has already been split once
B) Germany and Russia have been at war
C) Germany or Russia are subjects