fix #20989: Crash if exporting empty score