AttributeError NonType has no attribute replace - Python html2text

My custom app/module won’t send emails due to some python package error.
Here’s the custom code in py

        frappe.sendmail(
        recipients=[d.attendee for d in meeting.attendees],
        sender=frappe.session.user,
        subject=meeting.subject,
        message=meeting.invitation,
        reference_doctype=meeting.doctype,
        reference_name=meeting.name
    )

And here’s the traceback/logs

 Traceback (most recent call last):
15:19:14 web.1            |   File "/home/ace/frappe-bench/apps/frappe/frappe/email/queue.py", line 82, in send
15:19:14 web.1            |     text_content = html2text(message)
15:19:14 web.1            |   File "/home/ace/frappe-bench/env/lib/python3.8/site-packages/html2text/__init__.py", line 947, in html2text
15:19:14 web.1            |     return h.handle(html)
15:19:14 web.1            |   File "/home/ace/frappe-bench/env/lib/python3.8/site-packages/html2text/__init__.py", line 142, in handle
15:19:14 web.1            |     self.feed(data)
15:19:14 web.1            |   File "/home/ace/frappe-bench/env/lib/python3.8/site-packages/html2text/__init__.py", line 138, in feed
15:19:14 web.1            |     data = data.replace("</' + 'script>", "</ignore>")
15:19:14 web.1            | AttributeError: 'NoneType' object has no attribute 'replace'