Fix exception when getDefaultDisplayName() is called

This exception happens when the player is offline