Only update match if editor is still alive

Previously this wasn't guarding against the last possible cursor being
destroyed in which case update match should not be performed when the
editor is no longer alive.

Closes #35