Whenever I try to clear the crafting table by using the Shift+double click inventory management hotkey, there is a random chance some of the item stacks return to their original position in the crafting table, instead of being placed in my inventory.
The shift-double-click works not with empty hand, you'll have to hold (any) item in the hand. See screenshots.
Is that your problem ?