Correctly check that generateChunks flag is actually undefined,

instead of merely false