Fix detection of inactive module bundles for DependencyInjection Extensions

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| Refs tickets  |
| License       | MIT
| Doc PR        |

This fixes the detection of module bundles state. This allows for Zikula to allow or disallow DependencyInjection Extensions modifying the DIC.