[Fix #993] Don't report offenses for an empty file

Except possibly for the file name.