Fix QueryException::instanceOfUnrelatedClass() message
Merge pull request #1111 from eko/master

Fix inheritance hierarchy wrong exception message