Fix bug - ValueError was raised if there were no links to list.