Fixed a typo/bug in get_node -- when none of the nodes are ready, the same node was being pushed multiple times into the array and the same node was selected to be returned -- now, we will most likely get a node with node.pending < average(node.pending) of all healthy nodes