installer: fix check for translations.

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