fix process of getting values for ns_server tasks

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