No longer try to access non-existing registry key in getStartOnLogonScreen (#13384)
Fix-up of PR #13242
Originally reported by @Stefan-Kliesch-FHP in #13348
Summary of the issue:
getStartOnLogonScreen can fail with UnboundLocalError when the autostart key does not exist.
Description of how this pull request fixes the issue:
If we failed to open autostart key we no longer try to access it.