Handle undefined url in LinkAnnotation

Fixes #4296.