Fixed bug with non row returning queries crashing.