Bug fix in AncestorService::isAncestorOf