Fix test crash if a value from JSON can be cast as an integer