[IMGVIEW] Fix error condition in imgview_load_image_from_resource().