check that a package is not defined before ensuring it.
Merge pull request #1 from okonomiyaki3000/xtra_ensurance

check that a package is not defined before ensuring it.