fix iteration over report metrics

Change-Id: I51f38a58a48cbe885c41acb08aca68d68979458d
Reviewed-on: http://review.couchbase.org/28432
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>