Fix handling of errors when saving items to data store asynchronously