Check for nodes with no type.

From #3719.