[PATCH 08/10] nvmem: core: fix cell removal on error