4aeaba6922
Regression for the refText crash: attachmentDisplayText and optimisticAttachmentRef must return null (not throw) when handed an undefined/null attachment hole, so the submit path can't reproduce "Cannot read properties of undefined (reading 'refText')".