installer: fix the check for translations.

Previously, the language used during setup was written to the registry even when the translations component wasn't selected.