[API] Fix creating issue when assignee_id is empty

What does this MR do?

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/42025

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #42025

Merge request reports

Loading