Improved handling of null callbacks passed to MenuItems

To disable a callback, pass None to .set_callback(). This doesn't seem to always work, so I've improved it.