fix exception when getting log file content and one of the log files does not exist