Fix Bug 944804 - Close open trackevent editor if trackevent no longer ex...

...ists after duration changes

https://bugzilla.mozilla.org/show_bug.cgi?id=944804