Make gcode parser more resilient to malformed lines