Fix bug breaking highlighting of path nodes when the path node's index has changed.