WM_ParseNewMidi: use a common failure cleanup path by using gotos.
delay Init_MDI call until certain sanity checks pass. fixes clang
static analysis tool warnings.