Handle TypeError in _read_value()