[FrameworkBundle] Disable profiler when in non-debug environment

| Q             | A
| ------------- | ---
| Bug fix?      | no (not sure)
| New feature?  | no
| BC breaks?    | yes (not sure)
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #7064
| License       | MIT
| Doc PR        | ~

This fixes the loading of Collector classes seen in #7064 at the cost of not loading them at all in any environment which doesn't use ``` debug: true ```.

Due to the nature of the change I'm not sure if this is or not a BC break or a bug fix, I'll leave this to you to judge.

Also, I'm happy with this change as it really means that if I want to have debugging tools running in my application I should run with debugging enabled but I'm not sure about others.

Thanks.