Initialize neural_net.ann with NULL, avoiding freeing it in destroy()