Dojo DnD: Cannot read property 'type' of undefined