Fixes cave generation to work with mod biomes

Caves generated by MapGenCaves will currently not cut through custom
topBlocks, which causes caves to stop 1 block below the surface. This
fixes the behaviour and as a bonus also fixes cavegen in vanilla
mushroom biomes.