fix to query variable handling.  there was a bug in the changes in 0.6.5 where we relaxed the condition that you have to set all variables in the query.
fix to query variable handling.  there was a bug in the changes in 0.6.5 where we relaxed the condition that you have to set all variables in the query.

anandgsal/Empire,mhgrove/Empire