Email Alerts for Workflows with Email Templates are no longer working!

Hi,

We observed that Email Alerts for Workflows with Email Templates are no longer working ! It shows the below error in the error logs:

builtins.TypeError: 'Document' object is not iterable

This has persisted for months now. We initially thought it was some issue from the template but later discovered its a bug

Does anyone have a workaround ?

Thanks