(#1139) - put() should return error for empty _id

Ensure that put() returns an error when the _id is
undefined/null/empty.