Fixed log iterator. Do not skip last line if it ends with EOF