Handle case where line has identical start and end points