Fix lines with only a node and no edges.