fixed a bug and removed some extra code

- fixed a bug where if a controller on the same MIDI channel sends a cc message of non-existant control causes an error
- removed unused generateObserverFunc function