Prevent link borders from being drawn if their width is undefined

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