Use its real error message object to check
throw error directly from subqueries instead, and use the correct object to detect the null error message
change the error message from with to for
Merge pull request #1654 from VoltDB/ENG-6504-subquery-error

Use its real error message object to check