fixing md5sum generation for empty bodies