Ensure dojo/text does not cause preflight requests

Fixes #17493.

(cherry picked from commit 56703ec1fa0bd1901b259dc83404f3db5d92c9e4)