Corrected segfault when addBiome discards new biome (more than 255 biomes, or biome registering process finished)