mDNS: Fix of text length calculation when detecting a collision(Backport v4.1) See merge request espressif/esp-idf!12028