According to the docstring, the code should log an error and return a dead link.  I don't see where we are doing this.  Either the docstring should be updated or the code should follow the doc.