core: Reintroduce previously removed assert
core: Reintroduce previously removed assert

Silences the static analyzer, since it's blind to this list operation.

NEAT-project/neat,NEAT-project/neat,NEAT-project/neat,NEAT-project/neat,NEAT-project/neat