TIMOB-11665 Warn only if file may be HTML.
Merge pull request #4517 from BlainHamon/timob-11665

TIMOB-11665 Warn only if file may be HTML.