Fix an IndexOutOfBoundsException.

Caused by opening a player's context menu and then the player
disconnects.