Fix a bug for photos with missing assets