Fix notes polling failing after code changes
This seems to fix https://gitlab.com/gitlab-org/gitlab-ce/issues/29327, but I have no idea why - I just copied the approach from https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9235.
@rymai could you help me understand? /cc @adamniedzielski
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/29327.