I've fixed this problem. It was caused by a trying to exclude a culture from the religion starter trait.