Fixing undefined index notices when locale.module is enabled