Fix reg state thinking DWORD value set to 0 exists even if it doesn't.
Merge pull request #10695 from otrempe/develop

Fix reg state thinking DWORD value set to 0 exists even if it doesn't.