Fix a bug where the scripting environment was not getting notified of a selection change.