(#23115) Convert nil resource parameter values to undef etc.

http://projects.puppetlabs.com/issues/23115