Validate device in getWorkGroupInfo(device, name), allow null