npe bugfix for the case that unstore is called on an uninitialized element