Yet another attempt to fix registry GetValue issue