Changing getLanguage to return default language when none has been specified.