Fix crasher with non-existent lines.