Don’t format `null` in LocaleUtil::localizeDate

To be discussed. Would allow passing a database field directly to localizeDate without checking null.

I have not found a single instance where it is called explicitly with `null` so this is probably a safe change.