[PATCH 5.4 050/156] nvmem: core: fix cell removal on error