npm/npm — pull request #5678 by isaacs (2014-07-11 21:24:24+00:00)
Title: whoami: Don't crash if we don't have a username

The 'credentials' var will always be truthy, because there's
always *some* registry URI.

See also npm/npmconf#40