fix(avatar): fix handling of upload return value

SD-225