Don't crash while setting the avatar

We were unreffing an outputstream that wasn't ours.