It is most likely the consequence of lag. The site probably picked up your request to send out Gengar, but because of lag, your opponent's forfeit was published first and Gengar was sent out afterwards.
These kinds of harmless bugs are common on Showdown. Since they don't do anything, the probably aren't the PS! staff's top priority to fix.