Fixed NPE crash that caused not being able to join Singleplayer / Multiplayer (worlds / servers).

If this wasn't happening for other people before, it's hereby prevented to happen in the future ;)