Fix MIDI devices not being available on first run by checking the
device config first before instantiating everything.
Minor tweaks