GRAILS-10683 - improve rendering empty collections

We should not render a 204 if an HTML request is made to render an empty list of resources