Added a validation for when a client sends the stream format in string instead of the id.