[CLEANUP] Use a guard clause in set_i18n_local_from_parameters.

This fixes a warning in the latest Rubocop.

Resolves: GET-6