[WFLY-2896] Fix possible NPE in link lookup
Merge pull request #5898 from dmlloyd/wfly-2896-link-npe

[WFLY-2896] Fix possible NPE in link lookup