[#78785104] Fix image search pagination

- This is a stopgap fix until we figure out what changes we want to make to the API w/r/t the "total" field, as we don't have an inexpensive way of determining the total number of buckets. https://github.com/elasticsearch/elasticsearch/issues/4915