Fix "undefined" error when moving the cursor up in an editable

RM#13435