update/outdated: don't access missing package info
update/outdated: don't access missing package info

avoid null dereferences checking the status of a currently installed
package

Fixes #3820, a regression caused by #3798 and #3578

yodeyer/npm,TimeToogo/npm,kriskowal/npm,chadnickbok/npm,Volune/npm,ekmartin/npm,princeofdarkness76/npm,xalopp/npm,princeofdarkness76/npm,evanlucas/npm,cchamberlain/npm,misterbyrne/npm,Volune/npm,rsp/npm,cchamberlain/npm-msys2,chadnickbok/npm,midniteio/npm,lxe/npm,xalopp/npm,cchamberlain/npm-msys2,Volune/npm,yodeyer/npm,segrey/npm,yyx990803/npm,thomblake/npm,rsp/npm,haggholm/npm,midniteio/npm,misterbyrne/npm,kemitchell/npm,midniteio/npm,ekmartin/npm,kimshinelove/naver-npm,lxe/npm,segment-boneyard/npm,segrey/npm,DaveEmmerson/npm,segmentio/npm,kriskowal/npm,TimeToogo/npm,yyx990803/npm,princeofdarkness76/npm,yibn2008/npm,evocateur/npm,ekmartin/npm,thomblake/npm,kriskowal/npm,DIREKTSPEED-LTD/npm,evanlucas/npm,cchamberlain/npm,kemitchell/npm,DIREKTSPEED-LTD/npm,rsp/npm,cchamberlain/npm-msys2,segmentio/npm,cchamberlain/npm,TimeToogo/npm,yyx990803/npm,evocateur/npm,evanlucas/npm,lxe/npm,haggholm/npm,kimshinelove/naver-npm,segmentio/npm,segment-boneyard/npm,segment-boneyard/npm,haggholm/npm,evocateur/npm,kemitchell/npm,DaveEmmerson/npm,xalopp/npm,segrey/npm,DaveEmmerson/npm,chadnickbok/npm,yodeyer/npm,yibn2008/npm,misterbyrne/npm,thomblake/npm,kimshinelove/naver-npm,DIREKTSPEED-LTD/npm,yibn2008/npm