Skip showing the tree link if there is no pristine tree.
If the repository was get with the --no-pristine-tree option, there won't be a
current directory; we only show the tree option if the directory is there.
The other related option that accesses the pristine tree directly is the
headblob, but there is already a check in place that takes care of it.