Fix bug not recognizing linkref where optional title is omitted.

Also, take opportunity to simplify the resulting xexpr.