setBody and write now accept null values when writing to the response body.