Ensure dojo/text does not cause preflight requests

Fixes #17493.