[se][bug] Fix js error with autofill
[se][bug] Fix js error with autofill

reproduced on this sequence [1, blank, 2, 3]
for bug #36807

ONLYOFFICE/sdkjs,ONLYOFFICE/sdkjs,ONLYOFFICE/sdkjs,ONLYOFFICE/sdkjs,ONLYOFFICE/sdkjs