Fix for #25145 (#26994)
### Description
Fixed for fallback provider logic bug when creating inference session
can lead to losing GPU acceleration
### Motivation and Context
Fixing this for the PR here
[#25145](https://github.com/microsoft/onnxruntime/issues/25145)