handle connection errors while querying seriesly data

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