Update AvatarFactoryModule.cs

Fix a possible error on baking avatars.