BR: dangling pointer with options.getTargetComponent()

An example to show that if the ComboBox’s PopupMenu is dismissed when the window is closed, it is painted once again. With the WeakReference it is a nullptr now, thus it doesn’t crash anymore. And since the menu doesn’t seems to blink, i’m not sure it worths the cost to investigate more.