NetSuite requires a value in the to: field of an email. If a user tries to attach an email where the recipients are bcc'd only it will fail to attach and return the error below.
TypeError: Cannot read property 'forEach' of null
Resolve the Error
To resolve this error make sure there is at least one value in the to: email address field. For example, add yourself and then bcc the others.