Fixed crash if S3 image request does not return a valid image.

This can occur if the request does not return a valid image. In case of an error, S3 returns XML data, which causes profileImage to be nil.