make dfreader more robust against corrupt log files

This helps recovering from small errors in the logfile.