Added checks that the query was cloned in clientReply before waiting for a reply.