[orchestrator] fix nodes selection in case if pending_roles is not empty