hooks.js: fixed stats for only-web

Change-Id: I76cd19149aafe4bca7c5a902d4c7c0b5314d4121
Reviewed-on: http://review.couchbase.org/41006
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Pavel Blagodov <stochmail@gmail.com>
Tested-by: Pavel Blagodov <stochmail@gmail.com>