Check for non-nil container after match
Check for non-nil container after match

There can be a race between getting the container ids for matches and
getting the actual container.  This makes sure that we check that the
container returned by `Get` is non-nil before adding it to the list of
matches.

Fixes #25991

Signed-off-by: Michael Crosby <951f4c7b5d47e32d0112c78d14a98eaa23e6b5ef@gmail.com>
(cherry picked from commit a020ec4c8b476a814eb137e216fe9d723524fc3b)
Signed-off-by: Victor Vieux <ce584ac70734cfa5a848cd28039798932c7ea675@docker.com>

denverdino/docker.github.io,docker-zh/docker.github.io,denverdino/denverdino.github.io,docker/docker.github.io,anweiss/docker.github.io,johnstep/docker.github.io,LuisBosquez/docker.github.io,alexisbellido/docker.github.io,phiroict/docker,stainboy/docker,denverdino/docker.github.io,bdwill/docker.github.io,rillig/docker.github.io,JimGalasyn/docker.github.io,jzwlqx/denverdino.github.io,BSWANG/denverdino.github.io,BSWANG/denverdino.github.io,rillig/docker.github.io,menglingwei/denverdino.github.io,stainboy/docker,anweiss/docker.github.io,LuisBosquez/docker.github.io,denverdino/denverdino.github.io,bdwill/docker.github.io,troy0820/docker.github.io,BSWANG/denverdino.github.io,gdevillele/docker.github.io,anweiss/docker.github.io,troy0820/docker.github.io,thaJeztah/docker.github.io,docker-zh/docker.github.io,medallia/docker,docker/docker.github.io,troy0820/docker.github.io,jzwlqx/denverdino.github.io,denverdino/docker.github.io,jzwlqx/denverdino.github.io,shin-/docker.github.io,joaofnfernandes/docker.github.io,denverdino/denverdino.github.io,joaofnfernandes/docker.github.io,rillig/docker.github.io,docker/docker.github.io,gdevillele/docker.github.io,docker-zh/docker.github.io,medallia/docker,thaJeztah/docker.github.io,denverdino/denverdino.github.io,johnstep/docker.github.io,shin-/docker.github.io,sanscontext/docker.github.io,joeuo/docker.github.io,joeuo/docker.github.io,medallia/docker,alexisbellido/docker.github.io,shubheksha/docker.github.io,menglingwei/denverdino.github.io,londoncalling/docker.github.io,LuisBosquez/docker.github.io,sanscontext/docker.github.io,JimGalasyn/docker.github.io,thaJeztah/docker.github.io,joeuo/docker.github.io,shubheksha/docker.github.io,shubheksha/docker.github.io,londoncalling/docker.github.io,menglingwei/denverdino.github.io,medallia/docker,BSWANG/denverdino.github.io,joeuo/docker.github.io,bdwill/docker.github.io,aduermael/docker.github.io,jzwlqx/denverdino.github.io,jzwlqx/denverdino.github.io,danix800/docker.github.io,menglingwei/denverdino.github.io,joaofnfernandes/docker.github.io,londoncalling/docker.github.io,gdevillele/docker.github.io,sanscontext/docker.github.io,phiroict/docker,johnstep/docker.github.io,alexisbellido/docker.github.io,danix800/docker.github.io,thaJeztah/docker.github.io,denverdino/docker.github.io,denverdino/denverdino.github.io,anweiss/docker.github.io,aduermael/docker.github.io,shubheksha/docker.github.io,shubheksha/docker.github.io,aduermael/docker.github.io,johnstep/docker.github.io,LuisBosquez/docker.github.io,bdwill/docker.github.io,sanscontext/docker.github.io,shin-/docker.github.io,alexisbellido/docker.github.io,londoncalling/docker.github.io,menglingwei/denverdino.github.io,alexisbellido/docker.github.io,JimGalasyn/docker.github.io,troy0820/docker.github.io,stainboy/docker,johnstep/docker.github.io,thaJeztah/docker.github.io,londoncalling/docker.github.io,aduermael/docker.github.io,gdevillele/docker.github.io,sanscontext/docker.github.io,joeuo/docker.github.io,docker-zh/docker.github.io,danix800/docker.github.io,docker-zh/docker.github.io,phiroict/docker,LuisBosquez/docker.github.io,joaofnfernandes/docker.github.io,shin-/docker.github.io,shin-/docker.github.io,docker/docker.github.io,gdevillele/docker.github.io,bdwill/docker.github.io,docker/docker.github.io,BSWANG/denverdino.github.io,danix800/docker.github.io,rillig/docker.github.io,JimGalasyn/docker.github.io,denverdino/docker.github.io,JimGalasyn/docker.github.io,joaofnfernandes/docker.github.io,phiroict/docker,phiroict/docker,anweiss/docker.github.io