updater: Fix a crash and handle redirects