[Client] Fixing a null pointer crash while updating the avatar