Merge "Fix insert mode crash when text has UpdateLayout span" into main