Assert that editor model is available

The editor model is always available so we don't need all this defensive code.

Test Plan:
Closed some tabs to check for a regression of #99. Everything was fine.