Fix how we compare cached versus saved values

I still need to work through why this was the fix, but, this fixed a bunch of failing tests on edx-platform.