Fix QueryException::instanceOfUnrelatedClass() message