Making this function in control.lua look like this fixes the issue:
script.on_configuration_changed(function(data)
try_init ()
add_all_rtgs_to_table ()
for i, force in pairs(game.forces) do
if force.technologies["nuclear-power"].researched then
force.recipes["RITEG-1"].enabled = true
else
force.recipes["RITEG-1"].enabled = false
end
end
end)
Basically, this causes the items to be enabled or disabled on startup based on what technologies have been researched.