mac: Fix crash when checking for update, fixes #575.