Sorry for the inconvenience, what you are experiencing is a common bug that happens a lot on the server, similar bugs i.e Receiving a Null Egg in your party slots or your pokemon getting swapped out for random other pokemon. However, there is no need to worry all you need to do is rejoin the game and keep on playing!