Fix the master subqueries crashes for temp table
Merge pull request #1369 from VoltDB/master-crash

Fix the master subqueries crashes for temp table