Fixed outdated examples of using the LanguageManager
Fixes #2967: LanguageManager shouldn't throw exceptions
Addressed Jason's review concerns
Fix a JSHint complaint
Fixed unit tests
Added a missing piece of documentation
Merge pull request #3034 from DennisKehrig/dk/issue-2967

Fixed: LanguageManager shouldn't throw exceptions