hasMethod composite call fix:
call to child definition only if it has given class
Merge pull request #3888 from kirillsablin/master

DefinitionList hasMethod fix
Merge branch 'hotfix/3888'

Close #3888