Fix crash when no output log exists