Fixed segfault on appliying settings when non-editor tabs opened