(#1132) - ensure it cleans up after itself
(#1139) - put() should return error for empty _id

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