Fyi this worked for us but we had to manually reset “system” and “discobot” avatars back to their original value.
So BEFORE you run this command, double check the values in uploaded_avatar_id for “system” and “discobot” and set those back, and you should be good to go!