Fix when userprofile.photo has no file associated