Fix wrong count of no midi ports.

This courses wrong stream for devices which has no MIDI channels like M-Audio Firewire Solo.