Fix bug where sending "null" as body for some requests.