Fixes #1497 (wrong file rendered if language != sourceLanguage)