Check array bounds for replica index
Check array bounds for replica index

Change-Id: I6fb59bbd9cc22e03e0632774c94f47ea5bd586cc
Reviewed-on: http://review.couchbase.org/30832
Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
Tested-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>

couchbase/libvbucket,membase/libvbucket