Don't crash the application if another applciation has a hook the the media keys

Fixes #51