This bug still happens. A pity that the author does not bother to fix it.
This is how you can fix it yourself: edit control.lua. Around line 451 UpdateSensor is called where the error happens.
The original line looks like this:
UpdateSensor(storage.ghostScanners[storage.updateIndex + 1])
Replace the line with these two lines:
local ghostScanner = storage.ghostScanners[storage.updateIndex + 1]
if ghostScanner.entity.valid then UpdateSensor(ghostScanner) end
I cannot guarantee that my patch is side-effect free but at least it does not crash any longer.