Fix script error when last undo.
Fix script error when last undo.

bebeeteam/summernote,summernote/summernote,AshDevFr/winternote,summernote/summernote,bebeeteam/summernote,summernote/summernote,AshDevFr/winternote,bebeeteam/summernote,AshDevFr/winternote