On the robustness of the ammonia thermometer