This seems to break if you already have set the parameters to a String (for example doing `params.to_json`) even when not using any `extra_params`