Fixe for dojo 1.8

calling has() for some features throws exception if called too early.