bugfix: midi_register_device no longer crashes with a bad callback argument

closes #106