Add missing error handling for successful backend responses of the notes endpoint that contain errors.
closes https://gitlab.com/gitlab-org/gitlab-ce/issues/61377