can body actually be 'undefined', if so that seems like a bug that should be fixed upstram

   if (msg.etws && !msg.body) { 

Seems much preferable