Needed to handle null/undefined/empty string in last change to myt.generateLink.