Support kernel.finish_request in Symfony 2.4+
Return the profiles for kernel.request and kernel.response.