Sorry for the very brief explanation...
Here is how to reproduce the issue (without the patch applied):
Place a sorting tube.
Fill all available slots in the sorting tube with diamonds (this won't actually take any diamonds from your inventory since a copy is put into the sorting tubes inventory).
Flood the tube with anything until the tube bursts/breaks.
Now right click the sorting tube again and drag all the diamonds back into your inventory (yes, you actually get them).
It was possible to drag items from broken sorting-/mese-tubes.