Fix for updating team avatars

We now catch and clear and error where variables are undefined before
pulling out the new avatar file.  This is so we don't have to pass in
all of teams current data just to update the avatar.