Re: msi: Do not use type value if call to RegQueryValueEx failed.