htable: fix crash if key_value is not string