fixes #18223, fix dojox/validate/check regression