[NEXUS-5741] Verify that log file contains info that content of file is invalid

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>