Preserve both cursor and anchor nodes when removing an annotation

Fixes a crash if an annotation being removed has an expanded cursor inside of it.