[bug][33760] JEditor errors on addCustomTag() call when using raw document. Fixes #3716