fix #3195: NPE when selected image cannot be decoded