Treat empty locale variables as unset

Avoids warning:

warning: Failed to parse locale ''