Set path->endUnique if it needs to be set when a path has ended.