fixes NULL pointer dereference while writing client request body vulnerability (CVE-2016-4450). Signed-off-by: Graham Fairweather <xotic750@gmail.com>