#1207589: Backwards-compatibility patch for right-click menu in IDLE.
#17613: Prevent traceback when removing syntax colorizer in IDLE.