Compatibility fix for add_body() with new body.

When computing the new content-len, accept the case when there is no pre-existing body and a newly added body.
Reported by Antonis Psaras via LinkedIn

(cherry picked from commit 8054dbfb4d0c5c621d35db6bc886da41d3a05294)