Prevent link borders from being drawn if their width is undefined

Let undefined link borders default to zero pixels width, to prevent the graphical issues.

Fixes #3538.