Fix error when avatars folder does not exist