minor bugfix

Fixed a bug that would cause the game to crash if the playername was
empty.