Fix crash from /customavatar.