Fixing KeyError that arises 'a' tags are missing hrefs

Though I have no idea why this happens when a page is retrieved by script as it doesn't seem to in the browser's source view. I've confirmed that the tags this affects look like "<a target="_"></a>" and don't seem to interfere with any of the valid content on the page.