Don't trim() potentially undefined value
Don't trim() potentially undefined value

Re: isaacs/npm#2543

wzrdtales/read-package-json,lewiscowper/read-package-json,KenanY/read-package-json,pombredanne/read-package-json,npm/read-package-json