Fix for Dojo 1.8 (calling has for some features throws exception if
called too soon).
Merge pull request #5 from chuckdumont/master

Fixe for dojo 1.8