Make sure PathVisitor.visit.name is defined.