GH-137: Fix crash on startup when loading from Windows Registry