Use response.total instead of response.response['numFound'] in CatalogHelper.