fix for cached for explorer 8

fix for explorer 8 in some case cached is undefined
maybe for the differences of dom between version 8 and 9?