Undefined "err" variable in "npm bugs"

One-liner to fix the error handling. If you run `npm bugs` in a directory that doesn't have a `package.json` then the command fails with `ReferenceError: err is not defined`