Fix content-type header in cached views. Fixes issue #2358

This patch fixes [issue #2358](https://cakephp.lighthouseapp.com/projects/42648/tickets/2358-cachehelper-defect-with-response).

It's not the most elegant solution but it seems to work. Let me know if there is any issues or if it can be improved.