Fix for invalid free call on query_out struct

Fix for invalid free call on query_out struct triggered by iRODS returning CAT_NO_ROWS_FOUND when it had just found some result rows!