core: log: survive invalid log file

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1044993
Change-Id: If1da48cc50985a3d353964466f38babbbd42f4f3
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>