Fix attempt to dispose undefined when a pane item has no onDidChangeTitle event