hoodie.store.save: check for valid object

fixes #90