Fix missing undefined nonStringDependency error

npm 1.4.3 fails to install certain package configurations due to this.