Fixed a bug where flipping a line resulted in a crash, if its start vertex did not belong to any other line