Bug 1058565 - Correctly handle bad cache data. r=mshal