Bug 5978 - crash with prepared statements

Sometimes for internal temporary table, e.g., derived table, the s structure is not fully initialized.
However, the internal temprorary table can never be infinidb table, therefore isInfiniDB() returns false in such case.
Merge remote branch 'origin/develop' into feature/MySQL-5.6

fixed conflict in sql/table.h