fix #25112 export slur on grace notes

Slurs over and from grace notes are exported correctly. See issue #25112 (http://musescore.org/en/node/25112?mode=2&sort=2) and find there a simple test score. Take note that slurs from grace notes must be inserted with the new code.