Yes the Corn was prey for the King, my only guess is that for some reason the King was not hungry and did not strike fastenough. As to why the Corn tried to eat the king.......no clue, they aren't known for being snake eaters.
Juvenile corns actually are known to eat snakes . There are quite a few stories of hatchling corns kept together after their first shed that ended up feeding on each other.