fix pianoroll crash if there is no score