Handle loader plugins used together with dojo/has plugin.  Fixes #17438

(cherry picked from commit 94a0d235fee5303b904c1b2f90d5b3872b92bedd)