Clicked on another mod's menu button in the upper-left toolbar (vanilla) on the screen, and it threw that error.
Can repo it with simply loading in and clicking on the button leading to the other mod's primary menu.
Mod menu in question added by: https://mods.factorio.com/mod/RPG
Can't repo it in 2.8.1...
However, making a new mod toolbar and fiddling with the toggle and lock quick-bar buttons lead to this crash;
The mod Toolbars (2.8.1) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event toolbars-mod::on_lua_shortcut (ID 38)
LuaGuiElement API call when LuaGuiElement was invalid.
stack traceback:
[C]: in function 'newindex'
__toolbars-mod/src/gui/Component.lua:245: in function 'hide'
toolbars-mod/src/gui/toolbar/Toolbar.lua:197: in function 'update'
toolbars-mod/src/gui/toolbar/Toolbar.lua:188: in function 'handle'
toolbars-mod/src/player/EventBus.lua:17: in function 'publish'
toolbars-mod/src/player/Player.lua:163: in function 'handle'
toolbars-mod/src/player/Player.lua:112: in function 'toggleToolbars'
toolbars-mod/control.lua:41: in function <toolbars-mod/control.lua:35>