Fix dojo1.7 incompatibility