sqlops: safety check for result row field

- it might not be set in case of a failure in the middle of result
  conversion from db to internal memory
- freeing the partial result could result in a crash
- reported by Juha Heinanen