fixes a bug with the accept headers not defaulting properly when there is no accept header or the accept header has wildcards. Also fixes an exception being returned when there is a content type but it's not natively supported (like json)