[SPARK-2917] [SQL] Avoid table creation in logical plan analyzing for CTAS

In `CreateTables`, the line that you comment above. :)

And actually in https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala#L68 will check if every logical node has been resolved.