Handle GitHub API errors when loading avatar URL (#25762)