Fix a crash by clearing our reference to the menuwidget when it is deleted