Bug 1926: Don't loop endlessly if there are no buckets
Bug 1926: Don't loop endlessly if there are no buckets

Change-Id: I992c29f7af89e3462b7f029e6e8aafcffee56dbf
Reviewed-on: http://review.northscale.com/2461
Reviewed-by: Steve Yen <ef850f73f7832052d3c6d9b5ddd3a1716d9a57f1@gmail.com>
Tested-by: Steve Yen <ef850f73f7832052d3c6d9b5ddd3a1716d9a57f1@gmail.com>

membase/ns_server,vzasade/ns_server,vzasade/ns_server,mschoch/ns_server,membase/ns_server,daverigby/ns_server,t3rm1n4l/ns_server,t3rm1n4l/ns_server,ceejatec/ns_server,membase/ns_server,mschoch/ns_server,membase/ns_server,t3rm1n4l/ns_server,membase/ns_server,mschoch/ns_server,t3rm1n4l/ns_server,nimishzynga/ns_server,pavel-blagodov/ns_server,vzasade/ns_server,nimishzynga/ns_server,membase/ns_server,daverigby/ns_server,mschoch/ns_server,nimishzynga/ns_server,pavel-blagodov/ns_server,ceejatec/ns_server,nimishzynga/ns_server,t3rm1n4l/ns_server,ceejatec/ns_server,nimishzynga/ns_server,mschoch/ns_server,ceejatec/ns_server,daverigby/ns_server,daverigby/ns_server,pavel-blagodov/ns_server,nimishzynga/ns_server,mschoch/ns_server,ceejatec/ns_server,vzasade/ns_server,pavel-blagodov/ns_server,daverigby/ns_server,ceejatec/ns_server