#622 fixed issue with failing inserts via REST.

Resolves #622