ActiveAE: fix segfault in GenerateNoise