fix bug in call to iterator and correct param in get_stats
fix bug in call to iterator and correct param in get_stats

Change-Id: I528acfd6e5b96c25955e440e40eb12325576a275
Reviewed-on: http://review.couchbase.org/50554
Reviewed-by: Michael Wiederhold <a17fed27eaa842282862ff7c1b9c8395a26ac320@couchbase.com>
Tested-by: Venu Uppalapati <5c73d43f38c8de2bc4a2e4d15365e52f60b59dae@gmail.com>

couchbase/cbagent,mikewied/cbagent