Removed a warning when getLanguageForPath was called

Fixes #3146