Avoid putting item footers for last item if type is JSON or JSONP