Fixes possible NPE in global search when a type doesn't have a display name.
Fixes publish message to use the user's time zone.