smf_delete() does not handle NULL pointers. This fixes a crash when checking if a MIDI source is valid.