fix for http://trac.dojotoolkit.org/ticket/17018