Fix for dumping undef values in puppet 2.6

This fixes http://projects.theforeman.org/issues/3066