Added exception handling for SetBitmap() on dMenuItem.

For some menu item types, SetBitmap() is not supported, and raises an exception
if it is called. This fix catches that exception and handles it as a noop.