fix _get_buckets in active_tasks

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