fixed bug in WebMIDIAPIShim, improved client detection