HIVE-5137: A Hive SQL query should not return a ResultSet when the underlying plan does not include a FetchTask (Vaibhav Gumashta via Thejas Nair)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1519547 13f79535-47bb-0310-9956-ffa450edef68