Good catch.  Done: 5298d9a

I've also made it more robust by giving pagespeed time to transform the image if it's going to.  It looks like before the test wasn't actually checking anything, at least not when run with a cold cache.