Fix error when disabling server

Fix the error when disabling the server if the language file is not loaded.