make sure cache is not set when ajax fails

I updated the tests to cover that issue #92 is not true. When the fetch fails the cache keys are undefined. Would like a second set of eyes to validate this claim though.