Error while running event inventory-trash-slot::on_gui_click (ID 1)
LuaItemStack API call when LuaItemStack was invalid for read.
stack traceback:
[C]: in function '__index'
__inventory-trash-slot__/control.lua:165: in function <__inventory-trash-slot__/control.lua:152>
It looks like you haven't checked if storage_stack is occupied when handling Shift-click.