Puppet undef can result in either '' or nil, check for both.