Fixed code to work when body is empty

Now passes empty JSON data through the collection system to remove
errors about unknown keys when posting via other methods