Added check for undefined module

In the very rare instance that a module has both 0 dependencies and 0 devDependencies npmd-resolve appears to fail.  I'm not sure if this is the correct way to fix the issue, but it does work and doesn't cause any problems further down the tree (whereas returning `undefined` for the package info does).