fix segfault when initializing a request message with a body

TODO: convert phpunit tests to PHPTs


git-svn-id: http://svn.php.net/repository/pecl/http/branches/DEV_2@330934 c90b9560-bf6c-de11-be94-00142212c4b1