Fixed the login crash if the server isn't running.