PsiTreeAnchorizer: don't create anchors for invalid elements