added check for null resources during portchannel purge