Fix error when creating labels in a new issue in the boards page Closes #54311 See merge request gitlab-org/gitlab-ce!24039