Fixes #3140 : correct reporting for checkgenericfilecontent when no content is given