Small fix to only do the JSON minimization if the content type is actually JSONish.