Fix a chrome frame crash reported on the crash server. This occurs while attempting to reuse an existing automation client from a cached document. It appears that there are cases where the automation client in the cached document can be NULL.
Fix a chrome frame crash reported on the crash server. This occurs while attempting to reuse an existing automation client from a cached
document. It appears that there are cases where the automation client in the cached document can be NULL.

Will work on a better way to cache automation client on trunk.

Fixes bug http://code.google.com/p/chromium/issues/detail?id=43255

Bug=43255


Review URL: http://codereview.chromium.org/1964002

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@46499 0039d316-1c4b-4281-b951-d872f2087c98

crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,mogoweb/chromium-crosswalk,krieger-od/nwjs_chromium.src,rogerwang/chromium,anirudhSK/chromium,hgl888/chromium-crosswalk,robclark/chromium,Pluto-tv/chromium-crosswalk,zcbenz/cefode-chromium,junmin-zhu/chromium-rivertrail,markYoungH/chromium.src,junmin-zhu/chromium-rivertrail,anirudhSK/chromium,timopulkkinen/BubbleFish,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,robclark/chromium,timopulkkinen/BubbleFish,ltilve/chromium,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,rogerwang/chromium,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,hgl888/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Fireblend/chromium-crosswalk,timopulkkinen/BubbleFish,dednal/chromium.src,hgl888/chromium-crosswalk,dushu1203/chromium.src,axinging/chromium-crosswalk,nacl-webkit/chrome_deps,mohamed--abdel-maksoud/chromium.src,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,markYoungH/chromium.src,PeterWangIntel/chromium-crosswalk,Chilledheart/chromium,Fireblend/chromium-crosswalk,Jonekee/chromium.src,Just-D/chromium-1,robclark/chromium,Jonekee/chromium.src,mogoweb/chromium-crosswalk,zcbenz/cefode-chromium,Fireblend/chromium-crosswalk,nacl-webkit/chrome_deps,chuan9/chromium-crosswalk,bright-sparks/chromium-spacewalk,robclark/chromium,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,fujunwei/chromium-crosswalk,dednal/chromium.src,markYoungH/chromium.src,hujiajie/pa-chromium,M4sse/chromium.src,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,dushu1203/chromium.src,ltilve/chromium,bright-sparks/chromium-spacewalk,anirudhSK/chromium,keishi/chromium,littlstar/chromium.src,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,patrickm/chromium.src,jaruba/chromium.src,robclark/chromium,markYoungH/chromium.src,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk,zcbenz/cefode-chromium,littlstar/chromium.src,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,fujunwei/chromium-crosswalk,Just-D/chromium-1,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,anirudhSK/chromium,Fireblend/chromium-crosswalk,hujiajie/pa-chromium,mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,markYoungH/chromium.src,markYoungH/chromium.src,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,mohamed--abdel-maksoud/chromium.src,fujunwei/chromium-crosswalk,littlstar/chromium.src,axinging/chromium-crosswalk,Jonekee/chromium.src,fujunwei/chromium-crosswalk,robclark/chromium,krieger-od/nwjs_chromium.src,nacl-webkit/chrome_deps,hujiajie/pa-chromium,Chilledheart/chromium,rogerwang/chromium,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,jaruba/chromium.src,dushu1203/chromium.src,hujiajie/pa-chromium,ChromiumWebApps/chromium,junmin-zhu/chromium-rivertrail,chuan9/chromium-crosswalk,littlstar/chromium.src,rogerwang/chromium,hgl888/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,Pluto-tv/chromium-crosswalk,markYoungH/chromium.src,M4sse/chromium.src,dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,M4sse/chromium.src,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk-efl,ChromiumWebApps/chromium,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk-efl,jaruba/chromium.src,axinging/chromium-crosswalk,dushu1203/chromium.src,hujiajie/pa-chromium,dednal/chromium.src,ondra-novak/chromium.src,bright-sparks/chromium-spacewalk,jaruba/chromium.src,hujiajie/pa-chromium,patrickm/chromium.src,mogoweb/chromium-crosswalk,robclark/chromium,hujiajie/pa-chromium,Pluto-tv/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,littlstar/chromium.src,timopulkkinen/BubbleFish,nacl-webkit/chrome_deps,Just-D/chromium-1,anirudhSK/chromium,junmin-zhu/chromium-rivertrail,jaruba/chromium.src,fujunwei/chromium-crosswalk,axinging/chromium-crosswalk,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,rogerwang/chromium,zcbenz/cefode-chromium,Just-D/chromium-1,ChromiumWebApps/chromium,ondra-novak/chromium.src,PeterWangIntel/chromium-crosswalk,Just-D/chromium-1,zcbenz/cefode-chromium,dushu1203/chromium.src,littlstar/chromium.src,rogerwang/chromium,hgl888/chromium-crosswalk,pozdnyakov/chromium-crosswalk,Pluto-tv/chromium-crosswalk,jaruba/chromium.src,hujiajie/pa-chromium,timopulkkinen/BubbleFish,Fireblend/chromium-crosswalk,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk-efl,keishi/chromium,Just-D/chromium-1,hujiajie/pa-chromium,junmin-zhu/chromium-rivertrail,dushu1203/chromium.src,anirudhSK/chromium,hujiajie/pa-chromium,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk,anirudhSK/chromium,nacl-webkit/chrome_deps,crosswalk-project/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,pozdnyakov/chromium-crosswalk,mogoweb/chromium-crosswalk,chuan9/chromium-crosswalk,dushu1203/chromium.src,timopulkkinen/BubbleFish,robclark/chromium,ltilve/chromium,hgl888/chromium-crosswalk-efl,Chilledheart/chromium,dednal/chromium.src,bright-sparks/chromium-spacewalk,PeterWangIntel/chromium-crosswalk,zcbenz/cefode-chromium,TheTypoMaster/chromium-crosswalk,Pluto-tv/chromium-crosswalk,chuan9/chromium-crosswalk,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,TheTypoMaster/chromium-crosswalk,pozdnyakov/chromium-crosswalk,patrickm/chromium.src,Fireblend/chromium-crosswalk,mogoweb/chromium-crosswalk,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,pozdnyakov/chromium-crosswalk,Jonekee/chromium.src,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,Just-D/chromium-1,zcbenz/cefode-chromium,robclark/chromium,axinging/chromium-crosswalk,ondra-novak/chromium.src,keishi/chromium,M4sse/chromium.src,Jonekee/chromium.src,jaruba/chromium.src,chuan9/chromium-crosswalk,ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,rogerwang/chromium,littlstar/chromium.src,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,patrickm/chromium.src,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,Chilledheart/chromium,patrickm/chromium.src,axinging/chromium-crosswalk,chuan9/chromium-crosswalk,hujiajie/pa-chromium,fujunwei/chromium-crosswalk,anirudhSK/chromium,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,markYoungH/chromium.src,crosswalk-project/chromium-crosswalk-efl,axinging/chromium-crosswalk,M4sse/chromium.src,rogerwang/chromium,markYoungH/chromium.src,axinging/chromium-crosswalk,timopulkkinen/BubbleFish,Jonekee/chromium.src,axinging/chromium-crosswalk,patrickm/chromium.src,nacl-webkit/chrome_deps,ChromiumWebApps/chromium,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,ltilve/chromium,ondra-novak/chromium.src,ltilve/chromium,dednal/chromium.src,keishi/chromium,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,Just-D/chromium-1,Just-D/chromium-1,nacl-webkit/chrome_deps,M4sse/chromium.src,dednal/chromium.src,ltilve/chromium,krieger-od/nwjs_chromium.src,junmin-zhu/chromium-rivertrail,dushu1203/chromium.src,zcbenz/cefode-chromium,markYoungH/chromium.src,ltilve/chromium,crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,keishi/chromium,ChromiumWebApps/chromium,junmin-zhu/chromium-rivertrail,ltilve/chromium,nacl-webkit/chrome_deps,jaruba/chromium.src,keishi/chromium,TheTypoMaster/chromium-crosswalk,Chilledheart/chromium,fujunwei/chromium-crosswalk,keishi/chromium,anirudhSK/chromium,zcbenz/cefode-chromium,dednal/chromium.src,jaruba/chromium.src,hgl888/chromium-crosswalk,anirudhSK/chromium,robclark/chromium,M4sse/chromium.src,ltilve/chromium,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,Chilledheart/chromium,crosswalk-project/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,Chilledheart/chromium,ChromiumWebApps/chromium,keishi/chromium,chuan9/chromium-crosswalk,ChromiumWebApps/chromium,keishi/chromium,chuan9/chromium-crosswalk,Jonekee/chromium.src,rogerwang/chromium,ondra-novak/chromium.src,hgl888/chromium-crosswalk,keishi/chromium,dednal/chromium.src,TheTypoMaster/chromium-crosswalk,markYoungH/chromium.src,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,timopulkkinen/BubbleFish,ondra-novak/chromium.src,patrickm/chromium.src,patrickm/chromium.src,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk-efl,dednal/chromium.src,ChromiumWebApps/chromium,Jonekee/chromium.src,pozdnyakov/chromium-crosswalk,keishi/chromium,mogoweb/chromium-crosswalk,pozdnyakov/chromium-crosswalk,mogoweb/chromium-crosswalk,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,dednal/chromium.src,bright-sparks/chromium-spacewalk,Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,junmin-zhu/chromium-rivertrail,krieger-od/nwjs_chromium.src