Fixes #5312: correct reporting on check generic file content