Fix for segfault in img_io when underlying img info object returns false...

FYI This fixes a segfault.