Use bodyWriter instead of letting body be a function

See discussion in f4609c95c4743a16f2192aa37386a746f02e2bd3 and slightlyoff/ServiceWorker#413.