better handling of line_stat parsing errors