Fix crash in WildcardTree