Fix some Clang-5 errors
Suppress NULL object warning in cocoa_menu_item_update_accel_closure

Ensure accel_group exists before attempting to connect or disconnect
signal handlers