Sorry, didn’t quite get it…
Do you mean that you’ve fixed RTF data loss with a workaround, downside of which is that we now cannot set RTF data with AS “set custom metadata” command?
Exactly. AppleScript strips the RTF data before (!) sending the custom metadata to DEVONthink, therefore DEVONthink doesn’t know whether rich text custom metadata should be really deleted.