Provide graceful handling of RegCreateKeyExW when lpSecurityAttributes->nLength is zero. This reverts commit cc0716b65 (SVN r24491). JIRA issue: CORE-15471
cc0716b65