Catching unhandled exception in Tag._convertEntities (BeautifulSoup)