[Bookmarks] Fixed assert when migrating bookmarks

Assert when user had bookmark with folder that doesn't exists
Also save bookmarks as soon as they are migrated

Closes #1213