I have come up with a solution but I'm not 100% sure that it won't have unintended side effects.
On line 57 of control.lua, the following function can be modified so that unit_number is checked prior to using the value as an array index.
script.on_event(ev.on_entity_destroyed, function(event)
global.deployers[event.unit_number] = nil
end)
to
script.on_event(ev.on_entity_destroyed, function(event)
if not event.unit_number == nil then
global.deployers[event.unit_number] = nil
end
end)