Fix potential crash if locale database files not present
