fix html2text error handling