[SwiftmailerBundle] Fixed broken profiler using memory spool

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes, but no tests available for affected listener
| Fixed tickets | [#10630](https://github.com/symfony/symfony/issues/10630)
| License       | MIT
| Doc PR        |