Fix crash when accessing lastFocusBookmark if editor is not visible
Merge pull request #306 from FernCreek/lastFocusBookmarkFix

Fix crash when accessing lastFocusBookmark if editor is not visible