Fix error caches responses for without vary headers

Was just about to PR this myself, so we know the bug is real :)

How about !is_array($varyHeaders), on the off chance the cache returns something awful like null?