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.