fixed bug #17087 http_build_cookie() exhausts memory if cookie value is NULL