[FixRM:#8134] - Handle registry_getvaldata return value properly

registry_getvaldata can return nil, can't always assume it's
gonna throw a string.
Land #2068, @wchen-r7's fix to initialize variables on windows_autologin module