Added check for CustomChunkGenerator. Fixes #257.