Fix uncommitted unit display.

* When a unit is uncommitted, use it's display name.
* Don't use the displayname once the unit exists; it screws up other events
  that aren't applicable to the uncommitted unit.