Ensure widget id is set. #2363