Fixed 500 error when given an unused link.