Fix deregistration of EditorSession observers.
Fix deregistration of EditorSession observers.

andene/substance,andene/substance,podviaznikov/substance,podviaznikov/substance,michael/substance-1,stencila/substance,substance/substance,michael/substance-1,substance/substance