Fixes #5217, NPE selecting image
Fixes #5217, NPE selecting image

pstorch/cgeo,tobiasge/cgeo,mucek4/cgeo,SammysHP/cgeo,Bananeweizen/cgeo,superspindel/cgeo,pstorch/cgeo,rsudev/c-geo-opensource,S-Bartfast/cgeo,xiaoyanit/cgeo,matej116/cgeo,cgeo/cgeo,xiaoyanit/cgeo,S-Bartfast/cgeo,SammysHP/cgeo,cgeo/cgeo,pstorch/cgeo,kumy/cgeo,xiaoyanit/cgeo,samueltardieu/cgeo,superspindel/cgeo,auricgoldfinger/cgeo,matej116/cgeo,ThibaultR/cgeo,auricgoldfinger/cgeo,tobiasge/cgeo,kumy/cgeo,mucek4/cgeo,mucek4/cgeo,auricgoldfinger/cgeo,cgeo/cgeo,S-Bartfast/cgeo,rsudev/c-geo-opensource,ThibaultR/cgeo,SammysHP/cgeo,samueltardieu/cgeo,matej116/cgeo,rsudev/c-geo-opensource,kumy/cgeo,cgeo/cgeo,tobiasge/cgeo,ThibaultR/cgeo,superspindel/cgeo,Bananeweizen/cgeo,Bananeweizen/cgeo,samueltardieu/cgeo