QA-6318 : fixed npe when no link is defined