(console view) Fix crash if line has zero length