Fixes unnoting wrong note issue

Fixes the [sometimes unnotes the wrong note issue](https://github.com/guardian/flexible-content/issues/1235).