If the data is nil when rendering we now send 204 no content
set the ContentType while rendering