check that a package is not defined before ensuring it.

Because https://groups.google.com/d/msg/puppet-users/OF_WYN41dMI/h2_UidmVsR4J