Creating another thread to this as I've been asked a couple times to remove my fork.
The Deep Sea Oil generation script still runs regardless of map settings. It seems the setting only changes if it is actually placed down. In cases where oil deposits are removed entirely, the game thus crashes as the script still runs and tries to find a deep sea oil entity that doesn't exist. I don't know if this is actually the case -- Im an amateur at best with this stuff -- but based on the current working solution this seems to be the case.
The fork's solution is thus simple: put the call of the deep sea oil generation script in a conditional controlled by the map setting. Then it never tries to find the oil which doesn't exist. If this could be implemented, that'd be great as I love this mod and love to play with it but can't stand being locked to one continent as any expansion crashes with your version.