fixed issue 349227: Uninit error due to DuplicateHandle failure - add check on DuplicateHandle and assign duped to be NULL on failure
BUG=349227
R=sky@chromium.org, wfh@chromium.org, jschuh@chromium.org
TEST=manual+drmemory

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255955 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 255955