Fix #37846: MIDI import panel is not displayed when opening a MIDI file

Stored imported file path in the Score class.