Cocoa: Fix exception thrown when dead keys were pressed