Fixes crash reported when there is no access to the image cache folder.
During testing I forced the cache to be null and found only those 2 NPE checks necessary when loading images in the background.