Avoid endless loop on unusual blockfile.