Handle encoding of links in transclusion nodes properly when determining existence

Bug: T75823
Change-Id: I9398e4e1657b218043658d83b13c3dc78ffa8ff1
Merge "Handle encoding of links in transclusion nodes properly when determining existence"