fixed crash when putting unused/false material in the input at the
atomated crafting table