fix for getting/updating/deleting nonexistent items

treat a nonexistent item as an error condition for the purposes of the api; addresses issue #2 in a (very slightly) different way than @acjzz's pull request.