It crashes your game to the main menu if you open any UI that doesn't have an inventory (like bob's inserter ui for instance). That is because there are more things that might be returned from LuaControl.opened. You can fix it by replacing the canFilter and canRequest methods (lines 52-58 in control.lua) with the following:
function canFilter(obj)
return hasInventory(obj) and obj.get_output_inventory() ~= nil and obj.get_output_inventory().supports_filters()
end
function canRequest(obj)
return hasInventory(obj) and obj.request_slot_count > 0
end
function hasInventory(obj)
return tostring(getmetatable(obj)) == 'LuaEntity'
end