FlattenException from the HttpKernel is deprecated, using the one from Symfony/Debug