debugger: Fix internal EnvTree state after plugin reload

As the module is resident, the global variables won't get reinitialized
automatically when the plugin is reloaded, so reinitialize them
explicitly.

This is especially important for the `empty_row` variable as not
re-initializing it will lead to a double-free, and possibly a crash.