[Download] Fix network type checking

It is ok to set networktype to null, as it is optional.
And no need to throw exception if trying to set invalid value
(according to spec).
Merge pull request #238 from deqing/fix-networktype-checking

[Download] Fix network type checking