It appears that the TrackEvents.LOCAL_TRACK_STOPPED is not triggered when switching between camera and screen. This is a temporary workaround to prevent excessive amount of warnings (added in the previous commit) about multiple video elements.