avoiding problems in cache when index SO is saved succesfully, but actual data is not.

In that case, the cache returned an old object. Now, it returns 'null', which is safer.
added license