Do not generate/send the body if only the headers were needed

For example for a HEAD or 304 not modified reply.