Fix NullPointer when updating my profile avatar.