[CoreMidiSample] Exception on clicking 'Rescan'

- Fix for bug 17905.
- endpoint.Offline on iOS 6 simulator is equal to
CoreMidi.MidiException when we start the sample. I added a try catch
condition for that.