Fixed problem when posting something not an object

Fixes #354
1.1.6
v1.1.6