Fix cnxn.row and cnxn.scalar error reporting.

These two functions were reporting "wasn't a query" for all errors.