Avoid warnings when virt-what produces no output
The previous patch caused spurious warnings from facter when the
virt-what command produced no output, as it would if run by root on a
$ sudo facter virtual
Could not retrieve virtual: private method `gsub' called for nil:NilClass
Josh Cooper from Puppet Labs caught and fixed this.