Fix bare `npm install` with npm_config_save=true.

Don't update package.json if npm_config_save=true but no args were given.

Fixes #3489.