Fixing AST registry index after restart
Adding last used registry index to BootstrapDebugger.js