Fix #21069 - Opening the "Create | Instruments.." dlg box causes crash

Fix #21069 - Opening the "Create | Instruments.." dlg box causes crash.

Fixed in instrdialog.cpp by improving tests to check part info available when used from New Score Wizard and when used from Instruments Wizard.