[Merge] [Win] Fix crash if the profile dir cannot be created
[Merge] [Win] Fix crash if the profile dir cannot be created

If the profile is NULL, the code will hit the CHECK on line 389 anyway.

BUG=414332
TBR=noms@chromium.org

Review URL: https://codereview.chromium.org/878143003

Cr-Commit-Position: refs/heads/master@{#313709}
(cherry picked from commit 82e87d588df3a7334cf542ce68c9614869745f70)

Review URL: https://codereview.chromium.org/897453002

Cr-Commit-Position: 665a5787e4610f1ec55d3a4e2f02ab0724e38987@{#180}
Cr-Branched-From: 4cd5f18d847990599feba509541d8a7b9a16883a@{#310958}

mohamed--abdel-maksoud/chromium.src,markYoungH/chromium.src,Jonekee/chromium.src,M4sse/chromium.src,markYoungH/chromium.src,dushu1203/chromium.src,dednal/chromium.src,jaruba/chromium.src,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,markYoungH/chromium.src,dushu1203/chromium.src,jaruba/chromium.src,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,jaruba/chromium.src,krieger-od/nwjs_chromium.src,jaruba/chromium.src,dushu1203/chromium.src,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,krieger-od/nwjs_chromium.src,Jonekee/chromium.src,jaruba/chromium.src,dushu1203/chromium.src,dushu1203/chromium.src,M4sse/chromium.src,dednal/chromium.src,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,Jonekee/chromium.src,dednal/chromium.src,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,dednal/chromium.src,Jonekee/chromium.src,markYoungH/chromium.src,markYoungH/chromium.src,Jonekee/chromium.src,M4sse/chromium.src,dednal/chromium.src,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,markYoungH/chromium.src,jaruba/chromium.src,M4sse/chromium.src,markYoungH/chromium.src,markYoungH/chromium.src,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,Jonekee/chromium.src,Jonekee/chromium.src,dushu1203/chromium.src,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,dednal/chromium.src,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,dushu1203/chromium.src,dednal/chromium.src,krieger-od/nwjs_chromium.src,jaruba/chromium.src,M4sse/chromium.src,krieger-od/nwjs_chromium.src,Jonekee/chromium.src,markYoungH/chromium.src,Jonekee/chromium.src,M4sse/chromium.src,M4sse/chromium.src,jaruba/chromium.src,dednal/chromium.src,dushu1203/chromium.src,jaruba/chromium.src,dednal/chromium.src,M4sse/chromium.src,M4sse/chromium.src,Jonekee/chromium.src,jaruba/chromium.src,dednal/chromium.src