took out rendering of non-name nodes when looking for name substitutes

#6664