bugfix: body content would not be emitted when it was not required