SERVER-9339 do not query a node that is not in PRIMARY or SECONDARY state