Made a small change on how querys with no results  are handled for json and xml output