Fix a bug where the image viewer activity title sometimes did not get set