SERVER-13136 check cursor existence before using in balancer