Fixing crashes in OSDownloader and WizardActivity