Add assert in TreeFindPhrase