Validate network params, fix server test

I think this @server != :undef thing is only a problem in newer
versions of Puppet.  Testing @server against nil also seems to work,
but this feels like it'll be less likely to break in older versions of
Puppet.

http://docs.puppetlabs.com/guides/templating.html