Fixed the 1.6.2 build. Fixes #17283.

See #17283 (https://bugs.dojotoolkit.org/ticket/17283) for details.