Fixed bug where empty links were being registered as external