apply Dojo issue 16086 fix to .dijitReset. Fixes #2184