catch the right exception while prefetching

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

we tried to catch the wrong exception. this shows for example when having 2 menu providers with the simple cms bundle.