Remove orphaned listener from dialog definition.