Catch exceptions in MenuItemRenderers

fixes #7157