bugfix external_link
* don't break if you pass an empty link
* fix #797