Fix Locale based prop overloading.
Check for null props in String.toPattern().