HFM typo fixed and test fixed (#108804)
<!-- Thank you for your interest in and contributing to Elasticsearch!
There are a few simple things to check before submitting your pull
request that can help with the review process. You should delete these
items from your submission, but they are here to help bring them to your
attention. -->
Fix typo in HistogramFieldMapper and fixed related test code
closes https://github.com/elastic/elasticsearch/issues/108050