language_models: Fix tool_choice null issue for other providers (#34554)
Umesh Yadav
created
Follow up: #34532
Closes #35434
Mostly fixes a issue were when the tool_choice is none it was getting
serialised as null. This was fixed for openrouter just wanted to follow
up and cleanup for other providers which might have this issue as this
is against the spec.
Release Notes:
- N/A