Added an ArgumentError when passing a null device to the constructor of DeviceChild.