fixes Error: Can't set headers after they are sent.

see: https://trello.com/c/okug5KJw/380-api-new-relic-error-report