Remove trailing comma in ComponentStateChange event.