Fix to persistCachedReports method to ensure something is in the cache before trying to delete.