IoC::registered check fixed

Returns true if the instance was registered with IoC::instance
Merge pull request #1875 from effenberger/master

modified IoC::registred()