Exclude removed notes when generating note sequence #.
Fixes LP:1377921