T7801: Add patch to send remove event only if output and app_id is set
Add a patch to only send the remove to guard against clients which haven't yet set its app id or haven't been activated at all.
Add a patch to only send the remove to guard against clients which haven't yet set its app id or haven't been activated at all.