[2.2] [Finder] Fixed support for Streams (eg. Phar archives)

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #7035
| License       | MIT

Fixes default Adapter chain handling if we search in streams like Phar archives.
This PR adds an path validation for the adapters.