Check for null locale. Fix for #109