Fix a crash when editing bookmarks. https://redmine.stoutner.com/issues/646