fix #22787: Grace notes don't move after changing clef