Fixes State.saveUniquely throwing validation exceptions when there are lots of threads using it at once.
Fixes NPE when ImageResizeStorageItemListener can't access the image.