Fix bug in get_result looping over dbresults where no result rows are
returned from queries with newer versions of FreeTDS