Fix to ensure API response isn't output directly when using MandrillHandler