[bugfix] Avoid NPE with empty request body when using POST or PUT body
extraction