SHARK-132: Don't launch any Spark tasks if a query is run with LIMIT 0.